import request from '@/utils/request'

// 查询异步文件列表
export function listAsynchronousFile(query) {
  return request({
    url: '/business/asynchronousFile/list',
    method: 'get',
    params: query
  })
}

// 查询异步文件详细
export function getAsynchronousFile(id) {
  return request({
    url: '/business/asynchronousFile/' + id,
    method: 'get'
  })
}

// 新增异步文件
export function addAsynchronousFile(data) {
  return request({
    url: '/business/asynchronousFile',
    method: 'post',
    data: data
  })
}

// 修改异步文件
export function updateAsynchronousFile(data) {
  return request({
    url: '/business/asynchronousFile',
    method: 'put',
    data: data
  })
}

// 删除异步文件
export function delAsynchronousFile(id) {
  return request({
    url: '/business/asynchronousFile/' + id,
    method: 'delete'
  })
}
